home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / Illustrator 6.0 SDK r1 Mac / AI Plugin Interface / AIUser.h < prev    next >
Text File  |  1995-12-21  |  2KB  |  110 lines

  1. /**
  2.  
  3.     AIUser.h
  4.     Copyright (c) 1995 Adobe Systems Incorporated.
  5.     All Rights Reserved
  6.  
  7.     Adobe Illustrator 6.0 User Utilities Suite.
  8.  
  9.  **/
  10.  
  11. #ifndef __AIUser__
  12. #define __AIUser__
  13.  
  14.  
  15. /*******************************************************************************
  16.  **
  17.  **    Imports
  18.  **
  19.  **/
  20.  
  21. #include "AITypes.h"
  22. #include "AIColor.h"
  23.  
  24.  
  25. #if Macintosh
  26.     #ifdef __cplusplus
  27.     extern "C" {
  28.     #endif
  29.     
  30.     #if PRAGMA_ALIGN_SUPPORTED
  31.     #pragma options align=mac68k
  32.     #endif
  33.     
  34.     #if PRAGMA_IMPORT_SUPPORTED
  35.     #pragma import on
  36.     #endif
  37. #endif
  38.  
  39.  
  40. /*******************************************************************************
  41.  **
  42.  **    Constants
  43.  **
  44.  **/
  45.  
  46. #define kAIUserSuite        "AI User Suite"
  47. #define kAIUserVersion        2
  48. #if Macintosh
  49. #define kAIMacUserSuite        "AI Mac User Suite"
  50. #define kAIMacUserVersion    2
  51. #endif
  52.  
  53.  
  54. enum {
  55.     kShortUnits,            // "in"
  56.     kLongSingularUnits,        // "inch"
  57.     kLongPluralUnits        // "inches"
  58. };
  59.  
  60.  
  61. #define kUnknownUnitsErr      '?UNT'
  62.  
  63.  
  64. /*******************************************************************************
  65.  **
  66.  **    Suite
  67.  **
  68.  **/
  69.  
  70. typedef struct {
  71.  
  72.     MACPASCAL Boolean (*Cancel) ( void );
  73.     MACPASCAL void (*UpdateProgress) ( long current, long max );
  74.     MACPASCAL void (*SetProgressText) ( char *text );
  75.     MACPASCAL void (*CloseProgress) ( void );
  76.     MACPASCAL void (*FixedToString) ( Fixed value, short precision, unsigned char *string );
  77.     MACPASCAL void (*StringToFixed) ( unsigned char *string, Fixed *value );
  78.     MACPASCAL void (*IUFixedToString) ( Fixed value, short precision, unsigned char *string );
  79.     MACPASCAL void (*IUStringToFixed) ( unsigned char *string, Fixed *value );
  80.     MACPASCAL void (*IUFixedToStringUnits) ( Fixed value, unsigned char *string );
  81.     MACPASCAL void (*IUStringUnitsToFixed) ( unsigned char *string, Fixed *value );
  82.     MACPASCAL FXErr (*GetUnitsString) ( short format, unsigned char *string );
  83.  
  84. } AIUserSuite;
  85.  
  86. #if Macintosh
  87. typedef struct {
  88.  
  89.     MACPASCAL Boolean (*ModalFilterProc) ( DialogPtr theDialog, EventRecord *theEvent, short *itemHit );
  90.     MACPASCAL FXErr (*PreviewColorSwatch) ( WindowPtr window, Rect *swatchRect, AIColor *colorSpec );
  91.  
  92. } AIMacUserSuite;
  93. #endif
  94.  
  95. #if Macintosh
  96.     #if PRAGMA_IMPORT_SUPPORTED
  97.     #pragma import off
  98.     #endif
  99.     
  100.     #if PRAGMA_ALIGN_SUPPORTED
  101.     #pragma options align=reset
  102.     #endif
  103.     
  104.     #ifdef __cplusplus
  105.     }
  106.     #endif
  107. #endif
  108.  
  109. #endif
  110.